package com.cn.xiaonuo.slbfinances.members.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cn.xiaonuo.slbfinances.members.param.SlUserParam;
import com.cn.xiaonuo.slbfinances.members.entity.SlUser;
import com.cn.xiaonuo.slbfinances.slbagents.entity.SlUserDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
public interface SlUserMapper extends BaseMapper<SlUser> {
    List<Map<String, Object>> selUserMebList(SlUserParam slUserParam);

    List<SlUserDetail> membersDetail(SlUserParam slUserParam);

    /**
     * 获取服务中心
     * @param userId
     * @return
     */
    Map<String, Object> getCenterByUserId(@Param("userId") Integer userId);
}